package com.lit.mqtt.client2.controller;


import com.lit.mqtt.client2.controller.model.HelloVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "DemoController", tags = {"测试相关接口"}, description = "测试相关接口")
@RestController
@RequestMapping("/demo/client")
public class DemoClientController {

    private static final Logger logger = LoggerFactory.getLogger(DemoClientController.class);

    @ApiOperation(value = "测试接口1", notes = "sayHello")
    @GetMapping("/sayHello")
    public HelloVo sayHello() {
        HelloVo vo = new HelloVo();
        vo.setId(1L);
        vo.setMsg("Hello World");
        return vo;
    }

    @ApiOperation(value = "测试接口2", notes = "saySimpleHello")
    @GetMapping("/saySimpleHello")
    public String saySimpleHello() {
        return "Hello World";
    }
}
